﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class PlatForm_Introduction : System.Web.UI.Page
{
	/// <summary>
	/// 专家ID
	/// </summary>
	private int nExpertID = 0;
	/// <summary>
	/// 专家控制类
	/// </summary>
	private PX.Expert.ExpertComponent clsExpertComp = new PX.Expert.ExpertComponent();

	protected void Page_Load(object sender, EventArgs e)
	{
		nExpertID = Convert.ToInt32(Request["ID"].ToString());

		if (!IsPostBack)
		{
			ShowExpertIntroduction(nExpertID);
		}
	}

	protected override void OnInit(EventArgs e)
	{
		base.OnInit(e);

		clsExpertComp.page = Page;
	}

	/// <summary>
	/// 显示专家信息
	/// </summary>
	/// <param name="nExpertID"></param>
	private void ShowExpertIntroduction(int nExpertID)
	{
		PX.Expert.Expert clsExpert = new PX.Expert.Expert();

		clsExpert = clsExpertComp.GetOne(nExpertID);

		LabExpert.Text = clsExpert.TypeName + "：" + clsExpert.Name;

		ImgPic.ImageUrl = "../ShowImage.aspx?FileID=" + clsExpert.ImageID.ToString();
		iFrameIntroduction.Attributes.Add("src", "../ShowImageFile.aspx?FileID=" + clsExpert.IntroductionID.ToString());
	}
}
